package com.cl.pattern.mediator;

/**
 * @ClassName Client
 * @Description
 * @Author Small
 * @Date 2020/7/9 18:32
 * @Version 1.0
 **/
public class Client {

    public static void main(String[] args) {
        HouseMediator mediator = new HouseMediator();
        mediator.setSmallHouseColleague(new SmallHouseColleague());
        mediator.setTwoHouseColleague(new TwoHouseColleague());
        mediator.setTreeeHouseColleague(new TreeeHouseColleague());

        mediator.common("单间");
        mediator.common("两居室");
        mediator.common("三居室");
    }
}
